package org.scratchcrew.web.jsf.myfaces;

import javax.faces.context.FacesContext;

/**
 * Add name of implementation of this interface as context parameter with name
 * org.apache.myfaces.ERROR_HANDLER in web.xml in order to have custom error
 * handling. For example for
 * {@link javax.faces.application.ViewExpiredException}.
 * 
 * <code>
 * <pre>
&lt;context-param&gt;
	&lt;param-name&gt;org.apache.myfaces.ERROR_HANDLER&lt;/param-name&gt;
	&lt;param-value&gt;MyCustomErrorHandlerClass&lt;/param-value&gt;
&lt;/context-param&gt;
 *	</pre>
 * </code>
 */
public interface CustomErrorHandler {
	public void handleException(FacesContext facesContext, Exception exception);
}
